package com.atguigu.gulimall.order.Feign;

import com.atguigu.common.utils.R;
import com.atguigu.gulimall.order.vo.OrderWareVo;
import com.atguigu.gulimall.order.vo.WareSkuLockVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

@FeignClient("gulimall-ware")
public interface WareFeignService {
    @GetMapping("/ware/waresku/getSkuWare")
     List<OrderWareVo> getSkuWare();

    @GetMapping("/ware/waresku/orderLockStock")
    R orderLockStock(@RequestBody WareSkuLockVo wareSkuLockVo);
}

